package com.example.android427.Fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageButton;

import androidx.fragment.app.Fragment;

import com.example.android427.BofangActivity;
import com.example.android427.DengluActivity;
import com.example.android427.R;
import com.example.android427.ShigeActivity;
import com.example.android427.gongkaikeActivity;
import com.example.android427.guotugonggaoActivity;
import com.example.android427.jiangzuoyugaoActivity;
import com.example.android427.jiyiActivity;
import com.example.android427.qikanActivity;
import com.example.android427.shipinActivity;
import com.example.android427.tingshuActivity;
import com.example.android427.tupianActivity;
import com.example.android427.tushuActivity;
import com.example.android427.zhuantiActivity;

public class shouyeFragment extends Fragment{
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.shouye,container,false);
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        ImageButton zhuanti = (ImageButton) getActivity().findViewById(R.id.zhuanti);
        zhuanti.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), zhuantiActivity.class);
                startActivity(intent);
            }
        });
        ImageButton jiyi = (ImageButton) getActivity().findViewById(R.id.jiyi);
        jiyi.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), jiyiActivity.class);
                startActivity(intent);
            }
        });

        ImageButton shipin = (ImageButton) getActivity().findViewById(R.id.shipin);
        shipin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), shipinActivity.class);
                startActivity(intent);
            }
        });

        ImageButton tushu = (ImageButton) getActivity().findViewById(R.id.tushu);
        tushu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tushuActivity.class);
                startActivity(intent);
            }
        });

        ImageButton tingshu = (ImageButton) getActivity().findViewById(R.id.tingshu);
        tingshu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tingshuActivity.class);
                startActivity(intent);
            }
        });

        ImageButton tupian = (ImageButton) getActivity().findViewById(R.id.tupian);
        tupian.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tupianActivity.class);
                startActivity(intent);
            }
        });

        ImageButton gongkaike = (ImageButton) getActivity().findViewById(R.id.gongkaike);
        gongkaike.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), gongkaikeActivity.class);
                startActivity(intent);
            }
        });

        ImageButton qikan = (ImageButton) getActivity().findViewById(R.id.qikan);
        qikan.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), qikanActivity.class);
                startActivity(intent);
            }
        });

        Button jiangzuoyugao = (Button) getActivity().findViewById(R.id.jiangzuoyugao);
        jiangzuoyugao.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), jiangzuoyugaoActivity.class);
                startActivity(intent);
            }
        });

        Button jinqkk_bt1 = (Button) getActivity().findViewById(R.id.jinqkk_bt1);
        jinqkk_bt1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), ShigeActivity.class);
                startActivity(intent);
            }
        });


        Button guotuxinwen = (Button) getActivity().findViewById(R.id.guotuxinwen_bt);
        guotuxinwen.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), guotugonggaoActivity.class);
                startActivity(intent);
            }
        });
        Button zuixingonggao = (Button) getActivity().findViewById(R.id.zuixinggao_bt);
        zuixingonggao.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), guotugonggaoActivity.class);
                startActivity(intent);
            }
        });
        Button zhuantikk = (Button) getActivity().findViewById(R.id.zhuantikk_bt);
        zhuantikk.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), zhuantiActivity.class);
                startActivity(intent);
            }
        });
        Button tuijiankk = (Button) getActivity().findViewById(R.id.tuijiankk_bt);
        tuijiankk.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), qikanActivity.class);
                startActivity(intent);
            }
        });
    }
}